﻿using System;
using System.Collections.Generic;
using System.Text;
using Truron.Purchase.Model.RemoteModel;

namespace Truron.Purchase.Model
{
    public class FlowScheme
    {
        public int Id { get; set; }
        public string Code { get; set; }
        public string Scheme { get; set; }
    }
    public class Node
    {
        public int id { get; set; }
        public string name { get; set; }
        public string type { get; set; }
        public List<Btn> btnlist { get; set; }
        public int? auditortype { get; set; }   //1用户
        public int? auditorid { get; set; }    
        public List<NextId> nextids { get; set; }
    }
    public class Btn
    {
        public string code { get; set; }
        public string name { get; set; }
    }
    public class NextId
    {
        public int id { get; set; }
        public string btncode { get; set; }
        public string conditiontype { get; set; }
        public string condition { get; set; }

    }
    public class FlowCreateParam
    {
        public string FlowCode { get; set; }
        public int BussinessId { get; set; }
        public string BussinessTable { get; set; }
        public string BtnCode { get; set; }
        public int IsNext { get; set; }
        public UserCache UserInfo { get; set; }
        public string Notes { get; set; }
    }
    public class FlowAuditParam
    {
        public int InstanceId { get; set; }
        public string BtnCode { get; set; }
        public int BussinessId { get; set; }
        public string BussinessTable { get; set; }
        public UserCache UserInfo { get; set; }
        public string Notes { get; set; }
        public int NodeId { get; set; }
    }
    public class GetFlowInfoParam
    {
        public int BussinessId { get; set; }
    }
    public class FlowInfo
    {
        public string schemeInfo { get; set; }
        public List<Flow_Instance> InstanceList { get; set; }
    }
    public class FlowSchemeInfo
    {
        public List<Node> nodes { get; set; }
    }
}
